﻿#ifndef APPLICATION_H
#define APPLICATION_H

#include <QApplication>
#include <QSystemSemaphore>
#include <QSharedMemory>

namespace Core {

	class MainWindow;
	class Application : public QApplication
	{
		Q_OBJECT

	public:
		Application(int &argc, char **argv);
		~Application();

	public:
		/**
		* @brief  initInstance 初始化实例
		* @return bool
		*/
		bool initInstance();

		/**
		* @brief  exitInstance 退出实例
		* @return void
		*/
		void exitInstance();

		/**
		* @brief   getMainWindow 获取主窗口
		* @return
		*/
		MainWindow* getMainWindow();

	private:
		MainWindow *m_pMainWindow;
	};

}//namespace Core 

#endif // APPLICATION_H